// app 请求的api 集合
class WholeApis {
  static const bool _debug = true;

  // 主机名
  static const String hostName =
      _debug ? 'http://192.168.0.106:8888' : 'http://www.neecola.com:8888';

//  登录
  static const String loginUrl = hostName + '/v1/user/login';

  static const String pullValid = hostName + "/v1/user/reg";
  static const String registerUrl = hostName + '/v1/user/register';
  static const String publishUrl = hostName + '/v1/user/publish';
  static const String originUrl = hostName + '/v1/origin';
  static const String recommendBookUrl = hostName +'/v1/recommend';

  static const int loginOutTime = 409;
  static const int permissionDefined = 403;
  static const int missErr = 509;
  static const int paramsErr = 401;

  static const String defaultImg = hostName +"/static/img/default_cover.png";
}
